<?php
namespace Admin\Model;
use Think\Model;
use Think\Model\RelationModel;
class GroupModel extends RelationModel{
   
    public function addgroup(){
      
    }
    public function editInfo(){
        $groupId=I("get.id");
        return D('Auth_group')->find($groupId);
    }
    
    public function updateInfo(){
        $updateinfo= D('Auth_group')->create();
        if (D('Auth_group')->save($updateinfo)){
            return true;
        }else {
            return false;
        }
    }
    
    public function delInfo(){
        $groupId=I("get.id");
        $map['id']=$groupId;
        return D('Auth_group')->where($map)->delete();
    }
}